/*     */ package com.umeng.fb;
/*     */ 
/*     */ import android.view.MotionEvent;
/*     */ import android.view.View;
/*     */ import android.view.View.OnTouchListener;
/*     */ import android.widget.ListAdapter;
/*     */ import android.widget.ListView;
/*     */ import android.widget.RelativeLayout;
/*     */ 
/*     */ class h
/*     */   implements View.OnTouchListener
/*     */ {
/*     */   h(ConversationActivity paramConversationActivity)
/*     */   {
/*     */   }
/*     */ 
/*     */   public boolean onTouch(View paramView, MotionEvent paramMotionEvent)
/*     */   {
/* 166 */     if (ConversationActivity.b(this.a).getAdapter().getCount() < 2)
/* 167 */       return false;
/* 168 */     switch (paramMotionEvent.getAction()) {
/*     */     case 1:
/* 170 */       if (ConversationActivity.b(this.a).getFirstVisiblePosition() == 0) {
/* 171 */         if ((this.a.a.getBottom() >= this.a.b + 20) || 
/* 172 */           (this.a.a
/* 172 */           .getTop() > 0)) {
/* 173 */           this.a.a.setVisibility(0);
/* 174 */           this.a.a.setPadding(this.a.a.getPaddingLeft(), 
/* 175 */             this.a.c, 
/* 176 */             this.a.a.getPaddingRight(), 
/* 177 */             this.a.a.getPaddingBottom());
/*     */         }
/*     */         else
/*     */         {
/* 181 */           ConversationActivity.b(this.a).setSelection(1);
/* 182 */           this.a.a.setVisibility(8);
/* 183 */           this.a.a.setPadding(this.a.a.getPaddingLeft(), 
/* 184 */             -this.a.b, this.a.a.getPaddingRight(), 
/* 185 */             this.a.a.getPaddingBottom());
/*     */         }
/*     */       }
/* 188 */       break;
/*     */     case 0:
/* 190 */       ConversationActivity.a(this.a, (int)paramMotionEvent.getY());
/*     */ 
/* 192 */       break;
/*     */     case 2:
/* 194 */       a(paramMotionEvent);
/*     */     }
/*     */ 
/* 198 */     return false;
/*     */   }
/*     */ 
/*     */   private void a(MotionEvent paramMotionEvent)
/*     */   {
/* 203 */     int i = paramMotionEvent.getHistorySize();
/*     */ 
/* 205 */     for (int j = 0; j < i; j++)
/* 206 */       if (ConversationActivity.b(this.a).getFirstVisiblePosition() == 0) {
/* 207 */         int k = (int)paramMotionEvent.getHistoricalY(j);
/*     */ 
/* 211 */         int m = (int)((k - ConversationActivity.c(this.a) - this.a.b) / 1.7D);
/*     */ 
/* 213 */         this.a.a.setVisibility(0);
/* 214 */         this.a.a.setPadding(this.a.a.getPaddingLeft(), m, 
/* 215 */           this.a.a.getPaddingRight(), 
/* 216 */           this.a.a.getPaddingBottom());
/*     */       }
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.fb.h
 * JD-Core Version:    0.6.2
 */